using System.ComponentModel.DataAnnotations;
using zhwy.saas.api.Models.Auth;

namespace zhwy.saas.api.Models.Sys.Tenants
{
    public class AddTenantsReq
    {
        ///// <summary>
        ///// 帐号
        ///// </summary>
        //[Required(ErrorMessage = "帐号不能为空")]
        //public string UserName { get; set; }
        ///// <summary>
        ///// 密码
        ///// </summary>
        //[Required(ErrorMessage = "密码不能为空")]
        //public string Password { get; set; }

        [Required(ErrorMessage = "物业公司名称不能为空")]
        /// <summary>
        /// 备  注:物业公司名称
        /// 默认值:
        ///</summary>
        public string Name { get; set; }

        [Required(ErrorMessage = "统一社会信用代码不能为空")]
        /// <summary>
        /// 备  注:统一社会信用代码
        /// 默认值:
        ///</summary>
        public string Usci { get; set; }

        /// <summary>
        /// 备  注:营业执照图片
        /// 默认值:
        ///</summary>
        public string? Businesslicense_img { get; set; }

        /// <summary>
        /// 备  注:法人姓名
        /// 默认值:
        ///</summary>
        public string? Legalperson { get; set; }

        [RegularExpression(@"^1[3-9]\d{9}$", ErrorMessage = "请输入有效的11位手机号")]
        /// <summary>
        /// 备  注:联系电话
        /// 默认值:
        ///</summary>
        public string? Telephone { get; set; }

        /// <summary>
        /// tenant帐号信息
        /// </summary>
        public SaasAdminLoginReq loginReq
        {
            get; set;
        }
    }
}
